package ar.edu.unlu.sistemas.p2p.business.vo;

import java.net.SocketAddress;

public class PeerVO {
	
	public String id;
	public SocketAddress address;
	public String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public SocketAddress getAddress() {
		return address;
	}
	
	public void setAddress(SocketAddress address) {
		this.address = address;
		
	}
	
	public String toString() {
		return "id: "+this.getId()+"\nname: "+(this.getName()!=null?this.getName():"")+"\naddr: "+this.getAddress().toString();
	}

}
